package com.example.Annotation;

import com.example.Enum.DataSourceEnum;

import java.lang.annotation.*;

@Target({ElementType.PARAMETER, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface ChooseDataSource {
    /**
     * 数据库名称 DATA_SOURCE_BUSINESS
     *
     * @return 数据库名称
     */
    DataSourceEnum dataSourceName() default DataSourceEnum.DATA_SOURCE_BUSINESS;

}
